package org.example.tmsapi.service;

import org.example.tmsapi.model.Order;
import org.example.tmsapi.model.OrderLog;
import java.util.List;

public interface OrderService {
    // 获取订单详情
    Order getOrderById(String orderId);
    
    // 根据条件搜索订单
    List<Order> searchOrders(String orderNo, String trackingNo, String customerName);
    
    // 获取订单操作日志
    List<OrderLog> getOrderLogs(String orderId);
    
    // 添加订单操作日志
    void addOrderLog(String orderId, String operator, String operationContent);
    
    // 更新订单状态
    boolean updateOrderStatus(String orderId, String newStatus, String operator);
}